{if $title}<h1>{$title|translate} <a href="/{$__url}/add/" class="button add" title="add"></a></h1>{/if}
<table class="plainlist">
<thead>{capture assign=tablehead}<th>#</th><th>Дата</th><th>Заголовок</th><th>Краткое содержание</th><th>&nbsp;</th>{/capture}{$tablehead}</thead>
<tbody>
{foreach from=$list item=i name=list}
<tr>
<th>{$i.id}</th>
<td>{$i.date|datef:"%d.%m.%Y"}</a></th>
<td><a href="/news/{$i.id}/" target="_blank">{$i.title}</a></td>
<td>{if mb_strlen($i.short)>95}{$i.short|@mb_substr:0:90|escape}...{else}{$i.short}{/if}</td>
<td>{strip}
<a href="/{$__url}/edit/?id={$i.id}" class="button edit" title="edit"></a>
<a href="/{$__url}/remove/?id={$i.id}" class="button delete confirm" title="delete"></a>
{if $smarty.foreach.list.iteration == 1}
<a href="/{$__url}/add/" class="button add" title="add"></a>
{/if}
{*<a class="button copy" title="on/off"></a>
<a class="button up" title="higher priority"></a>
<a class="button down" title="lower priority"></a>*}
{/strip}</td>
</tr>
{foreachelse}
<tr>
<th>*</th>
<td>&nbsp;</th>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><a href="/{$__url}/add/" class="button add" title="add"></a></td>
</tr>
{/foreach}
</tbody>
<tfoot>{$tablehead}</tfoot>
</table>
